function b = get(spectrum,propName)
switch propName
    case 'm2'
        b = calc_m2(spectrum);
    otherwise
        error([propName,' is not a valid property']);
end